import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsOptional, isString, IsString } from 'class-validator';

export class WebsiteDto {
  @ApiProperty({ description: '网站id' })
  @IsNumber()
  @IsOptional()
  id?: number;

  @ApiProperty({ description: '微信二维码' })
  @IsString()
  @IsOptional()
  wechatCode?: string;

  @ApiProperty({ description: '微信二维码链接' })
  @IsString()
  @IsOptional()
  wechatCodeUrl?: string;

  @ApiProperty({ description: '手机号' })
  @IsString()
  @IsOptional()
  phone?: string;

  @ApiProperty({ description: '邮件' })
  @IsString()
  @IsOptional()
  email?: string;


  @ApiProperty({ description: '创建时间' })
  @IsOptional()
  createdAt?: Date;

  @ApiProperty({ description: '更新时间' })
  @IsOptional()
  updatedAt?: Date;
}
